#ifndef GLOBALEVENT_H
#define GLOBALEVENT_H

#include <QObject>
#include <QAbstractNativeEventFilter>

class GlobalEvent : public QObject, public QAbstractNativeEventFilter {
    Q_OBJECT
public:
    explicit GlobalEvent(QObject *parent = nullptr);

    bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;

    void setShortcut();

    void unsetShortcut();

signals:
    void activated();
};

#endif // GLOBALEVENT_H
